/*
 * @Author: wjc
 * @Date: 2025-09-28 09:02:43
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-28 10:22:20
 * @Description:
 */
/*
 * #Author: Charsen
 * #Date: 2024-06-12 08:03
 * #LastEditors: LiZhiWei
 * #LastEditTime: 2025-09-08 17:26:31
 * #Description:
 */
const systemRouter = [
  {
    path: '/system',
    name: 'system',
    redirect: '/system/personnels',
    meta: { title: '系统', icon: 'i-custom-system' },
    children: [
      {
        path: 'departments',
        name: 'DepartmentIndex',
        component: () => import('#/views/system/department/index.vue'),
        meta: {
          title: '部门管理',
          icon: 'i-custom-department',
          actions: ['system-department-index'],
        },
      },
      {
        path: 'positions',
        name: 'PositionIndex',
        component: () => import('#/views/system/position/index.vue'),
        meta: { title: '岗位管理', icon: 'i-custom-position', actions: ['system-position-index'] },
      },
      {
        path: 'personnels',
        name: 'PersonnelIndex',
        component: () => import('#/views/system/personnel/index.vue'),
        meta: {
          title: '人员管理',
          icon: 'i-custom-personnel',
          actions: ['system-personnel-index'],
        },
      },
      {
        path: 'personnels-trashed',
        name: 'PersonnelTrashed',
        component: () => import('#/views/system/personnel/trashed.vue'),
        meta: {
          title: '人员回收站',
          icon: 'i-custom-personnel',
          hidden: true,
          activeMenu: '/system/personnels',
          actions: ['system-personnel-trashed'],
        },
      },
      {
        path: 'login-management',
        name: 'loginManagementIndex',
        component: () => import('#/views/system/login-management/index.vue'),
        meta: {
          title: '登录管理',
          icon: 'i-custom-login',
          actions: ['system-login-management-index'],
        },
      },
      {
        path: 'authorization',
        name: 'Authorization',
        component: () => import('#/views/system/authorization/index.vue'),
        meta: {
          title: '授权管理',
          icon: 'i-custom-authorization',
          actions: ['system-authorization-index'],
        },
      },
      {
        path: 'operation-logs',
        name: 'OperationLogIndex',
        component: () => import('#/views/system/operation-log/index.vue'),
        meta: { title: '操作日志', icon: 'i-custom-log', actions: ['system-operation-log-index'] },
      },
    ],
  },
]

export default systemRouter
